// 定义本地存储KEY
const KEY = 'my-token-vant-mobile'
const username = 'username'

// 获取
export const getToken = () => {
  return localStorage.getItem(KEY)
}
// 添加
export const setToken = (token, uname) => {
  localStorage.setItem(KEY, token)
  localStorage.setItem(username, uname)
}
// 删除
export const delToken = () => {
  localStorage.removeItem(KEY)
  localStorage.removeItem(username)
}
